# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License.  You may obtain a copy
# of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
# License for the specific language governing permissions and limitations
# under the License.
#
# To run this locally:
#
# google_appengine/dev_appserver.py --address=myhost.example.com .
#
# To upload to App Engine:
#
# google_appengine/appcfg.py -s appengine.google.com update .

from google.appengine.ext import webapp

import handlers

application = webapp.WSGIApplication(
    [('/', handlers.CurrentContestHandler),
     ('/all/?', handlers.ContestListHandler),
     ('/contest/([-\w]+)', handlers.ContestHandler),
     ('/meme/([-\w]+)', handlers.MemeHandler),
     ('/vote/([-\w]+)', handlers.VoteHandler),
     ('/save', handlers.SaveHandler),
     ('/previewtext', handlers.PreviewHandler),
     ('/admin/?', handlers.AdminHandler),
     ('/admin/new_contest', handlers.AdminContestHandler),
     ('/admin/edit/([-\w]+)', handlers.AdminContestHandler),
     ('/admin/review/?', handlers.AdminReviewHandler),
     ('/admin/update/([-\w]+)', handlers.UpdateReviewHandler),
     ('/contestimage/([-\w]+)', handlers.ContestImageHandler),
     ('/memeimage/([-\w]+)', handlers.MemeImageHandler),
     ])
